import { lazy } from "react";

let RouterList=[
    {
        path:"/all",
        component:lazy(()=>import("../page/all")),
        children:[
            {
                path:"/all/home",
               component:lazy(()=>import("../page/all/home")), 
            },
            {
                path:"/all/moive",
               component:lazy(()=>import("../page/all/moive")), 
            },
            {
                path:"/all/shop",
               component:lazy(()=>import("../page/all/shop")), 
            },
            {
                path:"/all/my",
               component:lazy(()=>import("../page/all/my")), 
            },
            {
                path:"/all",
                to:"/all/home"
            }
        ]
    },
    {
        path:"/login",
        component:lazy(()=>import("../page/login"))
    },
    {
        path:"/",
        to:"/all"
    }
]


export default RouterList